#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TRGoupArrange : Business.BusinessBase<TRGoupArrange, int>
	{
		#region Fields and Properties

		private String arrangeNames = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ArrangeNames
		{
			get { return arrangeNames; }
			set
			{
				if (value != arrangeNames)
				{
					MarkChanged("ArrangeNames");
					arrangeNames = value;
				}
			}
		}

		private String tRGroupCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TRGroupCode
		{
			get { return tRGroupCode; }
			set
			{
				if (value != tRGroupCode)
				{
					MarkChanged("TRGroupCode");
					tRGroupCode = value;
				}
			}
		}

		private String checkerCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CheckerCode
		{
			get { return checkerCode; }
			set
			{
				if (value != checkerCode)
				{
					MarkChanged("CheckerCode");
					checkerCode = value;
				}
			}
		}

		private DateTime makeDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime MakeDate
		{
			get { return makeDate; }
			set
			{
				if (value != makeDate)
				{
					MarkChanged("MakeDate");
					makeDate = value;
				}
			}
		}

		private String yearNum = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String YearNum
		{
			get { return yearNum; }
			set
			{
				if (value != yearNum)
				{
					MarkChanged("YearNum");
					yearNum = value;
				}
			}
		}

		private int tern = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Tern
		{
			get { return tern; }
			set
			{
				if (value != tern)
				{
					MarkChanged("Tern");
					tern = value;
				}
			}
		}

		private String arrangeCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ArrangeCode
		{
			get { return arrangeCode; }
			set
			{
				if (value != arrangeCode)
				{
					MarkChanged("ArrangeCode");
					arrangeCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TRGoupArrange()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TRGoupArrange DataSelect(int id)
		{
			return Services.DALService.TRGoupArrangeService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TRGoupArrangeService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TRGoupArrangeService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TRGoupArrangeService.Delete(this);
		}

		#endregion Base overrides
	}
}
